﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BallData
{
    public class Bet007_LeagueItem
    {
        public String lId;
        public String type;
        public String color;
        public String cnName;
        public String trName;
        public String enName;
        public String url;
        public String important;
        public Int32 matchNum;
        public Boolean show;
        public Int32 showNum;

        public Bet007_LeagueItem(String infoStr)
        {
            String[] infoArr = infoStr.Split(OddsUntil.Bet007_SplitColumn);
            this.lId = infoArr[0];
            this.type = infoArr[1];
            this.color = infoArr[2];
            this.cnName = infoArr[3];
            this.trName = infoArr[4];
            this.enName = infoArr[5];
            this.url = infoArr[6];
            if(infoArr.Length > 7)
                this.important = infoArr[7];
            this.matchNum = 0;
            this.show = true;
            this.showNum = 0;
        }
        public String getName(String lang)
        {
	          if(lang=="2")
		        return this.enName;
	          else if(lang=="1")
		        return this.trName;
	          else
		        return this.cnName;
        		
        
        }
  
    }
}
